<div id="loginRegion" class="center">
    <div>
        <img src="/img/bailehui.png" alt=""/>
    </div>
    <form name="loginForm" novalidate style="margin-top: 50px;">
        <div class="form-group">
            <input type="text" class="form-control" name="name" ng-model="login.username" placeholder="用户名" required>
            <div class="error" ng-show="loginForm.name.$dirty && loginForm.username.$invalid">
                <div ng-show="loginForm.username.$error.required">请输入用户名！</div>
            </div>
        </div>
        <div class="form-group">
            <input type="password" class="form-control" name="password" ng-model="login.password" placeholder="密码" required>
            <div class="error" ng-show="loginForm.password.$dirty && loginForm.password.$invalid">
                <div  ng-show="loginForm.password.$error.required">请输入密码！</div>
            </div>
        </div>
        <button type="button" class="btn btn-default" ng-disabled="loginForm.$invalid"  ng-click="login.login()">登录</button>
        <a ui-sref="forgetpwd" class="btn btn-primary" >忘记密码</a>
    </form>
</div>